package com.zjy.heath_ms.controller;

import com.zjy.heath_ms.entity.QueryPageBean;
import com.zjy.heath_ms.entity.Result;
import com.zjy.heath_ms.service.CheckItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 项目名 heath_ms
 * 类名  CheckItemController
 * 作者 lzq
 * 创建时间  2025/5/25 12:47
 */

@RestController
@RequestMapping("/checkItem")
public class CheckItemController {
    @Autowired
    private CheckItemService checkItemService;

    /**
     * 查询检查项
     * @return
     */
    @GetMapping
    public Result find(QueryPageBean queryPageBean) {
        return Result.buildSuccess(checkItemService.findPage(queryPageBean));
    }
}
